<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/12
  Time: 14:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <%
        //读取项目的路径
        String path = request.getContextPath();
        //getScheme ---> http:// getServerName ---> localhost ---> getServerPort ----> 8080 /
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <%--配置页面的基准URL，所有外部资源以此为准--%>
    <base href="<%=basePath%>">
</head>
<body>
   <%-- <img src="images/1.jpg">--%>
   <span style="color:red">${error}</span>
    <form action="user/login" method="post">
        <input type="text" name="username" placeholder="输入账号"><br>
        <input type="password" name="password" placeholder="输入密码"><br>
        <input type="submit" value="登 录">
    </form>
</body>
</html>
